﻿#pragma once

#include <QMainWindow>

#include "svgwidget.h"

namespace Ui
{
	class SvgEditor;
}

class SvgEditor : public QMainWindow
{
	Q_OBJECT

public:
	explicit SvgEditor(QWidget* parent = nullptr);
	~SvgEditor() override;

public slots:
	void ChangeOperation(SvgOperationType op) const;

private slots:
	void _OpenSvg();
	void _NewSvg();
	void _SaveSvg();
	void _ChangeShapeToLine() const;
	void _ChangeShapeToRect() const;
	void _ChangeShapeToEllipse() const;
	void _ChangeShapeToPentagon() const;
	void _ChangeShapeToHexagon() const;
	void _ChangeShapeToIsoscelesTriangle() const;
	void _ChangeShapeToText() const;
	void _ChangeShapeToFreeLine() const;
	void _ChangeOperationToSelect() const;

private:
	void _InitUi();

private:
	Ui::SvgEditor* m_ui;
};

